#include<stdio.h>
#include<assert.h>
//unsigned int my_strlen(const char* p)
//{
//	assert(p != NULL);
//	unsigned int count = 0;
//	while (*p != '\0')
//	{
//		count++;
//		p++;
//	}
//	return count;
//}
//int main()
//{
//	char arr[30] = { 0 };
//	gets_s(arr);
//	printf("%d", my_strlen(arr));
//	return 0;
//}
void strcut(char* des,char* sou)
{
	int n = 0;
	scanf_s("%d", &n);
	sou = sou + n - 1;
	while (*sou != '\0')
	{
		*des = *sou;
		des++;
		sou++;
	}
	*(des + 1) = '\0';
}
int main()
{
	char arr1[] = "abcdefg";
	char arr2[10] = { 0 };
	printf("%s\n", arr1);
	strcut(arr2, arr1);
	printf("%s\n", arr2);
	return 0;
}